package com.ruoyi.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品管理对象 t_goods
 * 
 * @author hp
 * @date 2023-02-04
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 条码 */
    @Excel(name = "条码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 类别 */
    @Excel(name = "类别")
    private String category;

    /** 拓展信息 */
    @Excel(name = "拓展信息")
    private String note;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 采购价 */
    @Excel(name = "采购价")
    private Long costPrice;

    /** 零售价 */
    @Excel(name = "零售价")
    private Long retailPrice;

    /** 销售价 */
    @Excel(name = "销售价")
    private Long salePrice;

    /** 最低售价 */
    @Excel(name = "最低售价")
    private Long minPrice;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;

    /** 批号 */
    @Excel(name = "批号")
    private String batchNumber;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setCostPrice(Long costPrice) 
    {
        this.costPrice = costPrice;
    }

    public Long getCostPrice() 
    {
        return costPrice;
    }
    public void setRetailPrice(Long retailPrice) 
    {
        this.retailPrice = retailPrice;
    }

    public Long getRetailPrice() 
    {
        return retailPrice;
    }
    public void setSalePrice(Long salePrice) 
    {
        this.salePrice = salePrice;
    }

    public Long getSalePrice() 
    {
        return salePrice;
    }
    public void setMinPrice(Long minPrice) 
    {
        this.minPrice = minPrice;
    }

    public Long getMinPrice() 
    {
        return minPrice;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setSerialNumber(String serialNumber) 
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber() 
    {
        return serialNumber;
    }
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }

    public String getBatchNumber() 
    {
        return batchNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("specification", getSpecification())
            .append("model", getModel())
            .append("color", getColor())
            .append("category", getCategory())
            .append("note", getNote())
            .append("unit", getUnit())
            .append("costPrice", getCostPrice())
            .append("retailPrice", getRetailPrice())
            .append("salePrice", getSalePrice())
            .append("minPrice", getMinPrice())
            .append("state", getState())
            .append("serialNumber", getSerialNumber())
            .append("batchNumber", getBatchNumber())
            .toString();
    }
}
